﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public partial class Product
    {
        public ProductInfo GetInfo(Language langure)
        {

            switch (langure)
            {
                case Language.Ch:
                    return this.ProductInfo_Ch;
                case Language.En:
                    return this.ProductInfo_En;
                default:
                    throw new ArgumentOutOfRangeException("langure");
            }
        }
    }
}
